package com.yupi.springbootinit.model.vo.pmc;

import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ProcessBatchDetailVO implements Serializable {
    // ========== 批次基础信息 ==========
    private Long id;
    private String batchCode;
    private String orderNumber;
    private String status;
    private LocalDateTime planStart;
    private LocalDateTime planEnd;
    private LocalDateTime publishTime;
    private Integer quantity;
    private String deviceName;
    private String flowNumber;
    private String productionPlanNumber;

    // ========== ✅ 材料信息（工艺单级别）==========
    private String materialBrand;
    private String materialSpec;
    private String powderSupplier;

    // ========== ✅ 产品明细列表 ==========
    private List<BatchProductDetail> products;

    @Data
    public static class BatchProductDetail implements Serializable {
        private String productCode;
        private String productName;
        private String specification;
        private BigDecimal productHeight;
        private BigDecimal unitWeight;
        private Integer productionQuantity;
    }
}